import java.util.Scanner;

public class HomeWork13_03{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        IdSex is = new IdSex();
        
        System.out.print("please enter id string: ");
        String id = scan.next();
        is.judgeIdSex(id);
    }
}

class IdSex{
    public void judgeIdSex(String id){
        String str = id.substring(id.length() - 2, id.length() - 1);
        if(Integer.parseInt(str) % 2 == 0){
            System.out.println("男");
        }else{
            System.out.println("女");
        }
    }
}